package com.zyp.bridge;

public class TestBridge {

	
	public static void main(String[] args) {
		IComputer computer=new Dell("戴尔");
		computer.setHardware(new CPU());
		computer.start();
		computer.setHardware(new HardDisk());
		computer.start();
		
		computer=new Dell("联想");
		computer.setHardware(new CPU());
		computer.start();
		computer.setHardware(new HardDisk());
		computer.start();
	}
}
